function deepcope(obj){
    let obj2 = Array.isArray(obj) ? [] : {};
    obj2[key] = typeof obj[key] == 'object' ? deepcope(obj[key]) : obj[key];
    return obj2;
}